package com.api.shopapi.service;


import com.api.shopapi.entity.Menu;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface MenuService {

    int insert(Menu menu);

    int deleteByMenuCode(String menuCode);

    int updateByMenuCode(Menu menu);

    Menu getByMenuCode(String menuCode);

    List<Menu> getList();

    List<Menu> getListByParentMenuCode(String parentMenuCode);

    List<Menu> getListByRoleCodeParentMenuCode(String roleCode,String parentMenuCode);

    PageInfo<Menu> getPageInfo(int pageNum, int pageSize);

}
